]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Hide search results while leaving overview
authorSuryashankar Das <suryashankardas.2002@gmail.com>
Fri, 12 Mar 2021 19:49:10 +0000 (01:19 +0530)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 30 Jan 2024 02:59:45 +0000 (03:59 +0100)
There is currently no proper transition from search results
to the session: Only the top bar fades, but the rest of the
screen just changes abruptly at the end of the transition.

Fix this by hiding search results before leaving the overview,
so the regular transition can take place.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3821

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3152>

js/ui/overviewControls.js
js/ui/searchController.js

index 4ba4657baa5c731581d445d447d2b16cb2b17cf4..c48efffbeee0495f5af055ab8446d0777b615873 100644 (file)
@@ -720,6 +720,7 @@ class ControlsManager extends St.Widget {
     }
 
     prepareToLeaveOverview() {
+        this._searchController.prepareToLeaveOverview();
         this._workspacesDisplay.prepareToLeaveOverview();
     }
 
index 532a6d3edc14d8d985c268f5b8f17091601b03ab..be5d6cfa47dd48d6e5c8bb608f983b735a68ec96 100644 (file)
@@ -117,6 +117,10 @@ export const SearchController = GObject.registerClass({
         this._setSearchActive(false);
     }
 
+    prepareToLeaveOverview() {
+        this._setSearchActive(false);
+    }
+
     vfunc_unmap() {
         this.reset();